<include file="Public:header" />
<include file="Public:leftside" />
<div class="main-content">
	<div class="breadcrumbs breadcrumbs-fixed" id="breadcrumbs"> 
		<ul class="breadcrumb">
			<li> <i class="icon-home home-icon"></i> <a href="/">首页</a> </li>
			<li class="active">导航管理</li>
		</ul>
	</div>
	
	<section class="vbox">
						
	<section class="scrollable wrapper">
    <div class="row padder-v">
    <div class="col-sm-9">
        <a href="{:U('Platform/shopnav')}" class="btn btn-sm btn-primary"> 导航管理 </a>
        <a href="{:U('Platform/shopnav_add',array('cid'=>1))}" class="btn btn-sm btn-default"><i class="fa fa-plus"></i> 添加导航 </a>

    </div>
    
</div>
	<!-- 操作提示  start -->
	<section class="panel-default m-b-sm">
		<div class="alert alert-info">
			<p>
             
              <i class="fa fa-hand-o-right m-r-xs"></i><strong>操作提示</strong>
            </p>
			<p class="alert-p m-l-xl"><i class="fa fa-caret-right m-r-xs"></i>导航管理</p>
		</div>
	</section>
	<!-- 操作提示  end -->
							


<form class="well form-search" id="mainform" action="{:U('Platform/shopnav')}" method="post">
			<select id="navcid_select" name="cid">
				<foreach name="navcats" item="vo"> <php>$navcid_selected=$navcid==$vo['navcid']?"selected":"";</php>
				<option value="{$vo.navcid}"{$navcid_selected}>{$vo.name}</option>
				</foreach>
			</select>
		</form>


<section class="panel panel-default ">
	<div class="table-responsive">
	<form class="js-ajax-form" action="{:U('Platform/shopnav_listorders')}" method="post">
		<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit"  style="padding: 2px 10px;margin: 6px;">排序</button>
		</div>
		<table class="table table-hover table-bordered table-list" style="margin-bottom:0px; ">
				<thead>
					<tr>
						<th width="50">排序</th>
						<th width="50">ID</th>
						<th>菜单名称</th>
						<th width="80">状态</th>
						<th width="90" style="text-align: center;">一级显示</th>
						<th width="80">高亮</th>
						<th width="220">操作</th>
					</tr>
				</thead>
				<tbody>
				{$categorys}
				</tbody>
				<tfoot>
					<tr>
						<th width="50">排序</th>
						<th width="50">ID</th>
						<th>菜单名称</th>
						<th width="80">状态</th>
						<th width="80">一级显示</th>
						<th width="80">高亮</th>
						<th width="180">操作</th>
					</tr>
				</tfoot>
			</table>
			<div class="table-actions">
				<button type="submit" class="btn btn-primary btn-small js-ajax-submit"  style="padding: 2px 10px;margin: 6px;">排序</button>
			</div>
			</form>
	</div>




</section>


						</section>
					</section>
<script>
//全局变量
		var GV = {
		     DIMAUB: "/",
		    JS_ROOT: "NewAdmin/js/",
		    TOKEN: ""
		};
</script>
<script src="/NewAdmin/js/wind.js"></script>
<link href="/NewAdmin/js/artDialog/skins/default.css" rel="stylesheet" />
<script src="/NewAdmin/js/zhlmy.js"></script>
	
	<script>
		$(function() {

			$("#navcid_select").change(function() {
				$("#mainform").submit();
			});

		});
	</script>
<include file="Public:footer" />